// 引入ajax
import services from '../../services/services.js'
import config from '../../config/index.js'

class login {
  /**
   * 登陆接口
   */
  OnLogin(data, isLoading = true) {
    return services.ajax({
      url: `${config.old_postUrl}/api/WxOpen/OnLogin`,
      data: data,
      method: 'POST',
      isLoading,
    })
  }

}

module.exports = new login() 